inspired by Zhao Zuo --auto --s2